OpenText Cordys 10.6 documentation : Sending Alerts to E-mail

Sending Alerts to E-mail

In this section, you will learn how to use e-mail and receive log messages and alerts. The following example illustrates the configuration of the SMTPAppender which publishes the alerts to the E-mail.

Adding a logging category

  1. Go to the Cordys_install_dir/config directory and open the file Log4jConfiguration.xml.
  2. Add the following category.
    <category name="com.eibus.management.AlertSystem">
        <priority value="info"/>
        <appender-ref ref="e-mail"/>
    </category>
    
  3. Add the Appender for e-mail
    <appender class="org.apache.log4j.net.SMTPAppender" name="e-mail">
        <param name="SMTPHost" value="srv-ind-dm19jw"/>
        <param name="To" value="Admin@cordys.com"/>
        <param name="From" value="JMX@cordys.com"/>
        <param name="subject" value="Process Platform Alert"/>
        <layout class="org.apache.log4j.HTMLLayout">
            <param name="LocationInfo" value="true"/>
        </layout>
    </appender>
    
  4. Save the configuration.

Viewing log entries

  1. Perform any operation that raises the alerts. For example, restarting the Monitor, sending license report, restarting the database server and so on.
  2. Check the mail box for the alerts. The following is an example of an error alert in email: